package info.hexin.json.serialize.render;

import info.hexin.json.serialize.JsonRender;
import info.hexin.json.serialize.StringWrite;

public class StringRender implements JsonRender {
    public static StringRender instance = new StringRender();

    @Override
    public void render(Object object, StringWrite write) {
        String tmp = object.toString();
        if(null != tmp){
            write.appendFiledNameWithQuotation(object.toString());
        }
    }
}
